package trading.algo.initTask;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;

public class LastClosePriceTask extends TimerTask {
	private IBAccessorBO ibAccessorBO;
	private String ticker;

	public LastClosePriceTask(String ticker, IBAccessorBO ibAccessorBO) {
		this.ticker = ticker;
		this.ibAccessorBO = ibAccessorBO;
	}

	public void run() {
		ibAccessorBO.reqLastCloseStockTickPrice(ticker);
	}
	
	public static int secondsNeeded() {
	    return 3;
	}
}